]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid: Adapt grid layout according to available size
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 19 May 2020 17:19:05 +0000 (14:19 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 18 Jun 2020 13:30:12 +0000 (10:30 -0300)
commitc5dbdad5fc5a6215feb4033bfd03c65b6058c8b0
treefd5f690ffd7d681da351ede7bf761462dea2ade5
parent4e05bcd3b678407348f9ccf880dff33021eaded8
iconGrid: Adapt grid layout according to available size

The new icon grid layout operates based on rows and columns, and
doesn't try to dynamically adapt it to fit to the container. In
this case, it is better to have a pre-defined set of well-known,
well-tested rows and columns, and switch between them based on
the aspect ratio of the screen.

Introduce a set of modes to the icon grid, and select the mode
that is closest to the aspect ratio.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1271
js/ui/iconGrid.js